home *** CD-ROM | disk | FTP | other *** search
- -- card: 51030 from stack: in
- -- bmap block id: 3699
- -- flags: 4000
- -- background id: 2606
- -- name: START
- ----- HyperTalk script -----
- HIDE MENUBAR
-
-
- -- part 2 (button)
- -- low flags: 00
- -- high flags: 0003
- -- rect: left=96 top=147 right=181 bottom=174
- -- title width / last selected line: 0
- -- icon id / first selected line: 20186 / 20186
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: sort
- ----- HyperTalk script -----
- Global tempA
- global tempB
- Global tempC
- Global startcard
- on mouseUp
- answer "Sort all cards of this stack according to:" with "Name" or "I.D." or "Cancel"
- if it is "Name" then
- sort by first word of first line of field "Last"
- exit mouseUp
- end if
- if it is "i.d." then
- sort by field 3
- end if
- if it is "Cancel" then
- exit mouseUp
- end if
- repeat with startcard = 3 to the number of cards
- GO TO CARD STARTCARD
- get field 3
- put it into tempA
- go to next card
- get field 3
- put it into tempB
- go to next card
- get field 3
- put it into tempC
- if tempA = tempB then
- domenu "delete card"
- beep 1
- end if
- if tempb = tempC then
- domenu "delete card"
- beep 1
- end if
- go to card startcard
- end repeat
- go to card 1
- beep 5
- end mouseUp
-
-
-
- -- part 3 (button)
- -- low flags: 00
- -- high flags: 0000
- -- rect: left=292 top=301 right=324 bottom=317
- -- title width / last selected line: 0
- -- icon id / first selected line: 1013 / 1013
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Next
- ----- HyperTalk script -----
- on mouseUp
- go to next card
- end mouseUp
-
-
-
- -- part 5 (button)
- -- low flags: 00
- -- high flags: 0000
- -- rect: left=194 top=302 right=325 bottom=220
- -- title width / last selected line: 0
- -- icon id / first selected line: 1014 / 1014
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name:
- ----- HyperTalk script -----
- on mouseUp
- go to prev card
- end mouseUp
-
-
-
- -- part 6 (button)
- -- low flags: 00
- -- high flags: 8003
- -- rect: left=224 top=115 right=130 bottom=408
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Add New Student Card
- ----- HyperTalk script -----
- on mouseUp
- GO TO CARD five
- DOMENU "NEW CARD"
- end mouseUp
-
-
-
-
- -- part 7 (button)
- -- low flags: 00
- -- high flags: 0003
- -- rect: left=94 top=187 right=215 bottom=177
- -- title width / last selected line: 0
- -- icon id / first selected line: 32670 / 32670
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name:
- ----- HyperTalk script -----
- on mouseUp
- show all cards
- end mouseUp
-
-
-
- -- part 8 (button)
- -- low flags: 00
- -- high flags: 8003
- -- rect: left=224 top=81 right=98 bottom=405
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: New Set Of Student Cards
- ----- HyperTalk script -----
- Global Subj
- Global Num
- Global Data
- Global Y -- THE NUMBER OF CHARS
- Global Sub --THE NAME OF THE ROW IN A SPREADSHEET
- Global Fname
- Global Hold
- Global subject1
- Global subject2
- Global subject3
- Global subject4
- Global subject5
- Global subject6
- Global subject7
- Global subject8
- Global subject9
- Global subject10
- on mouseUp
- GET FIELD 1 OF CARD 4
- PUT IT INTO SUBJECT1
- GET FIELD 2 OF CARD 4
- PUT IT INTO SUBJECT2
- GET FIELD 3 OF CARD 4
- PUT IT INTO SUBJECT3
- GET FIELD 4 OF CARD 4
- PUT IT INTO SUBJECT4
- GET FIELD 5 OF CARD 4
- PUT IT INTO SUBJECT5
- GET FIELD 6 OF CARD 4
- PUT IT INTO SUBJECT6
- GET FIELD 7 OF CARD 4
- PUT IT INTO SUBJECT7
- GET FIELD 8 OF CARD 4
- PUT IT INTO SUBJECT8
- GET FIELD 9 OF CARD 4
- PUT IT INTO SUBJECT9
- GET FIELD 10 OF CARD 4
- PUT IT INTO SUBJECT10
- ask "Enter name of file to import. " with "GRADES"
- put it into Fname
- open file Fname
- read from file Fname until return
- repeat
- put " " into y
- repeat
- read from file Fname until return
- beep 1
- put the number of chars in it into y
- If char 1 of it = "" then
- beep 9
- close file Fname
- answer "END OF STUDENT DATA !" WITH "OK"
- exit mouseUp
- end if
- put it into Data
- if y < 3 then exit repeat
- put offset(tab,Data) into num --gets first field (until tab)
- put char 1 to (num ) of data into subj
- -- these lines are to test for a subject
- PUT SUBJ INTO IT
- if SUBJ contains SUBJECT1 then put "yes" into IT
- if SUBJ contains SUBJECT2 then put "yes" into IT
- if SUBJ contains SUBJECT3 then put "yes" into IT
- if SUBJ contains SUBJECT4 then put "yes" into IT
- if SUBJ contains SUBJECT5 then put "yes" into IT
- if SUBJ contains SUBJECT6 then put "yes" into IT
- if SUBJ contains SUBJECT7 then put "yes" into IT
- if SUBJ contains SUBJECT8 then put "yes" into IT
- if SUBJ contains SUBJECT9 then put "yes" into IT
- if SUBJ contains SUBJECT10 then put "yes" into IT
- if IT = "yes" then
- ask "Make new cards for this subject ? " with subj
- if it is subj then
- go to card FIVE -- card to copy
- repeat
- read from file Fname until return -- get record to process
- put it into Data
- put offset(tab,Data) into num --gets first field (until tab)
- put the number of chars in it into y
- put char 1 to (num ) of data into subj
- if y < 3 then exit repeat
- if SUBJ contains SUBJECT1 then exit repeat
- if SUBJ contains SUBJECT2 then exit repeat
- if SUBJ contains SUBJECT3 then exit repeat
- if SUBJ contains SUBJECT4 then exit repeat
- if SUBJ contains SUBJECT5 then exit repeat
- if SUBJ contains SUBJECT6 then exit repeat
- if SUBJ contains SUBJECT7 then exit repeat
- if SUBJ contains SUBJECT8 then exit repeat
- if SUBJ contains SUBJECT9 then exit repeat
- if SUBJ contains SUBJECT10 then exit repeat
- domenu "new card"
- if num <> 0 then
- put char 1 to (num-1 ) of data into field 1
- delete char 1 to num of data
- put offset(tab,Data) into num --gets second field (until tab) end point
- end if
- if num <> 0 then
- put char 1 to (num-1 ) of data into field 2
- delete char 1 to num of data
- put offset(tab,Data) into num --gets third field (until tab) end point
- end if
- if num <> 0 then
- put char 1 to (num-1 ) of data into field 3
- delete char 1 to num of data
- put "no" into hold
- end if
- end repeat
- end if
- if it <> subj then
- put " " into subj
- exit repeat
- end if
- end if
- end repeat
- end repeat
- close file Fname
- end mouseUp
-
-
-
-
- -- part 9 (button)
- -- low flags: 00
- -- high flags: 8003
- -- rect: left=222 top=143 right=160 bottom=408
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Auto Import All Cards
- ----- HyperTalk script -----
- on mouseUp
- repeat with x = 6 to the number of cards
- go to card x
- get location of background button 1
- click at it
- beep 1
- end repeat
- end mouseUp
-
-
-
- -- part 10 (button)
- -- low flags: 00
- -- high flags: 8003
- -- rect: left=228 top=239 right=256 bottom=411
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Print Selected Cards
- ----- HyperTalk script -----
- on mouseUp
-
- global y
- global z
- ask "What is the number of the first card to print ? " with y
- put it into y
- ask "what is the number of the last card to print ? " with z
- put it into z
- repeat with count = y to z
- go to card y
- domenu "print card"
- put y + 1 into y
- end repeat
- end mouseUp
-
-
-
- -- part 11 (button)
- -- low flags: 00
- -- high flags: 8003
- -- rect: left=225 top=173 right=189 bottom=409
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Delete Student Cards
- ----- HyperTalk script -----
- GLOBAL NUM
- GLOBAL CNAME
- on mouseUp
- GO TO CARD 6
- REPEAT
- get the name of this card
- put it into Cname
-
- IF CNAME CONTAINS "START" THEN
- BEEP 1
- EXIT REPEAT
- END IF
- IF CNAME CONTAINS "INSTRUCTIONS 1" THEN
- BEEP 1
- EXIT REPEAT
- END IF
- IF CNAME CONTAINS "INSTRUCTIONS 2" THEN
- BEEP 1
- EXIT REPEAT
- END IF
- IF CNAME CONTAINS "SAMPLE CARD" THEN
- BEEP 1
- EXIT REPEAT
- END IF
- IF CNAME CONTAINS "SUBJECT CARD" THEN
- BEEP 1
- EXIT REPEAT
- END IF
- DOMENU "DELETE CARD"
-
- END REPEAT
- end mouseUp
-
-
-
- -- part 13 (button)
- -- low flags: 00
- -- high flags: 8003
- -- rect: left=227 top=207 right=225 bottom=412
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Quick Check a Student
- ----- HyperTalk script -----
- on mouseUp
- Global Subj
- Global num
- Global Data
- Global y
- Global x
- Global NAME
- Global yes
- put "" into mmm
- open file grades
- ask "Display grades for which Student ? " with NAME
- if it = "" then
- beep 3
- close file grades
- exit mouseUp
- end if
- PUT IT INTO NAME
- repeat
- read from file grades until return
- beep 1
- put the number of chars in it into y
- If char 1 of it = "" then
- beep 9
- close file grades
- answer "END OF STUDENT DATA !" WITH "OK"
- exit mouseUp
- end if
- put it into Data
- if data contains NAME then
- show message box
- put data into message box
- wait 300
- hide message box
- answer "Check next set of grades for this student ? " with "Yes" or "no"
- if it <> "yes" then
- close file grades
- exit mouseUp
- end if
- end if
- end repeat
- close file grades
- end mouseUp
-
-
-
- -- part 15 (button)
- -- low flags: 00
- -- high flags: A000
- -- rect: left=14 top=53 right=102 bottom=98
- -- title width / last selected line: 0
- -- icon id / first selected line: 24617 / 24617
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Microsoft Works
- ----- HyperTalk script -----
- On MouseUp -- Application
- Global LongName
- Put "FX-20:Works:Microsoft Works" into LongName
- LaunchApplication
- End MouseUp
-
- --
- -- FOR 'PORTFOLIO' TO FUNCTION CORRECTLY; DO NOT MODIFY THIS SCRIPT!
- --
-
-
-
- -- part 16 (field)
- -- low flags: 00
- -- high flags: 0000
- -- rect: left=113 top=303 right=315 bottom=125
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 0
- -- font id: 3
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name:
-
-
- -- part 17 (field)
- -- low flags: 00
- -- high flags: 0000
- -- rect: left=113 top=304 right=316 bottom=125
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 0
- -- font id: 3
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name:
-
-
- -- part 18 (field)
- -- low flags: 00
- -- high flags: 0000
- -- rect: left=113 top=303 right=318 bottom=125
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 0
- -- font id: 3
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name:
-
-
- -- part 19 (button)
- -- low flags: 00
- -- high flags: 8003
- -- rect: left=80 top=246 right=268 bottom=180
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: HELP PLEASE !
- ----- HyperTalk script -----
- on mouseUp
- GO TO CARD 2
- end mouseUp
-
-